package com.fzrskj.cloud.free.miniservice.enums;

/**
 * MiniServiceEncryptionMethod.
 *
 * @author zj.
 *         Created on 2019/5/23 0023.
 */
public enum MiniServiceEncryptionMethod {
    /**
     * md5.
     */
    MD5("md5");
    /**
     * 方法.
     */
    private String method;

    /**
     * construct.
     * @param method method.
     */
    MiniServiceEncryptionMethod(String method) {
        this.method = method;
    }

    /**
     * get method.
     * @return method.
     */
    public String getMethod() {
        return method;
    }

    /**
     * equals.
     * @param method method.
     * @return result.
     */
    public Boolean equals(String method) {
        return this.method.equals(method);
    }
}
